//go:build wireinject
// +build wireinject

// The build tag makes sure the stub is not built in the final build.
package main

import (
	"gitee.com/xinshortlink/api/xinshortlink"
	"gitee.com/xinshortlink/internal/dal"
	"gitee.com/xinshortlink/internal/dto/resp"
	"gitee.com/xinshortlink/internal/pkg"
	"gitee.com/xinshortlink/internal/server"
	"gitee.com/xinshortlink/internal/service"
	"github.com/google/wire"
)

func InitServer() (*server.Server, error) {
	panic(wire.Build(pkg.Set, dal.Set, resp.Set, xinshortlink.Set, server.NewServer, service.Set))
}
